/*
 * @Author: 詹真琦(legendryztachi@gmail.com)
 * @Date: 2021-10-19 14:30:18
 * @LastEditors: 詹真琦(legendryztachi@gmail.com)
 * @LastEditTime: 2022-06-07 11:16:55
 * @FilePath: \code\cwp-front\pc-collaboration\src\store\modules\new-button\static-btn-list.js
 * @Description: 静态按钮集合
 */

//4个必定展示按钮
export default [
  {
    // label:'发送',
    label: $.i18n('common.toolbar.send.label'),
    image: 'syIcon sy-release',
    handle: 'send',
    loading: false,
    type: 'sending'
  },
  {
    label: $.i18n('common.toolbar.savesend.label'),
    image: 'syIcon sy-saveDraft',
    handle: 'saveWaitSend',
    color: '#0077ff',
    loading: false,
    type: 'savePending'
  },
  {
    label: $.i18n('common.toolbar.templete.label'),
    image: 'syIcon sy-formengine',
    handle: 'callTemplate',
    color: '#0077ff',
    loading: false,
    type: 'callTemplates'
  },
  {
    label: $.i18n('common.toolbar.saveAs.label.rep'),
    image: 'syIcon sy-save_template',
    handle: 'saveAsTemplate',
    color: '#65C624',
    loading: false,
    type: 'saveAsTemplates'
  }
];

//打印按钮，通过接口字段officeCanPrint控制是否展示
export const print = {
  label: $.i18n('common.toolbar.print.label'),
  image: 'syIcon sy-print',
  handle: 'newDoPrint',
  loading: false,
  color: '#FAB715',
  type: 'print'
};

//待办不展示按钮。其实就是把它删了
export const deleteDraft = {
  label: $.i18n('collaboration.label.deleteDrafPending'),
  handle: 'deleteDraft',
  image: 'cap-icon-daibanbuxianshi',
  isNewIcon: true,
};
